package com.vencent.spring.entity;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

public class Person {
	@NotNull(message="id不能为空")
	private Long id;
	
	@NotNull(message="名字不能为空")
	private String name;
	
	@Max(value = 150,message="您的年龄有误")
	private int age;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}	
